import { Link } from 'react-router-dom';
import { connect } from 'dva';
import Bar from '../common/bar';

const Page1 = ({ page1 }) => {
    return <div>
        <Bar></Bar>
        <p>{page1.text}</p>
        <Link to="/"><p>Home</p></Link>
        <br/>
        <Link to="/page2"><p>Page 2</p></Link>
    </div>
}

export default connect(({ page1 }) => ({ page1 }))(Page1);